//
//  ChangePasswordViewController.m
//  Mall
//
//  Created by 孙飞燕 on 16/10/20.
//  Copyright © 2016年 孙飞燕. All rights reserved.
//

#import "ChangePasswordViewController.h"
#define kWidth self.view.frame.size.width
#define kHeight self.view.frame.size.height

@interface ChangePasswordViewController ()

@end

@implementation ChangePasswordViewController
- (UILabel *)originalLabel{
    if (!_originalLabel) {
        _originalLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 10, 50, 30)];
        _originalLabel.text = @"原密码";
    }
    return _originalLabel;
}

- (UILabel *)changeLabel{
    if (!_changeLabel) {
        _changeLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 45, 50, 30)];
        _changeLabel.text = @"新密码";
    }
    return _changeLabel;
}
- (UITextField *)originalTF{
    if (!_originalTF) {
        _originalTF = [[UITextField alloc]initWithFrame:CGRectMake(50, 10, kWidth - 50, 30)];
        _originalTF.placeholder = @"原密码";
    }
    return _originalTF;
}

- (UITextField *)changeTF{
    if (!_changeTF) {
        _changeTF = [[UITextField alloc]initWithFrame:CGRectMake(50, 45, kWidth - 50, 30)];
        _changeTF.placeholder = @"新密码";
    }
    return _changeTF;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];
    [self.view addSubview:self.originalLabel];
    [self.view addSubview:self.originalTF];
    [self.view addSubview:self.changeTF];
    [self.view addSubview:self.changeLabel];

    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
